package org.genntii.smuserserver.client;

import org.genntii.smcommon.result.Result;
import org.genntii.smdomain.dto.UserDirectoryDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("sm-userDirectory")
public interface UserDirectoryClient {

    @PostMapping("/user_directory/default")
    Result addDefaultFavorite(@RequestBody UserDirectoryDTO userDirectoryDTO, @RequestParam("userId") Long userId);

}
